import java.util.*;

/**
 * 
 * Main class running the project
 * 
 * @author tomalteman
 *
 */

public class alternews {
	
	public static void main(String[] args)
	{
		int minSize = 3;
		String loc = "bristol";
		String country= "uk";
		
		if(args.length > 1)
		{
			System.out.println("Min Size now "+args[0]);
			minSize = Integer.parseInt(args[0]);
			loc = args[1];
		}
		else if(args.length == 1)
		{
			loc = args[0];
		}
		
		getNews(loc,country,minSize);
	}
	
	private static void getNews(String input, String country, int ms)
	{
		page p = new page(ms);
		p.build(input,country);
		
		/*//Deal with string
		String[] query = getQuery.getQuery(input);
		
		//Get articles
		feedParse reader = new feedParse();
		ArrayList<article> arts = reader.parsePage(query[0]);
		
		//Write html
		writePage wp = new writePage();
		wp.write(input, arts);*/
	}
	
}
